from feapder.db.mysqldb import MysqlDB

def createdb():
    db = MysqlDB(ip="localhost", port = 3306,user_name="root", user_pass="888888", db="test")
    print(db)
    sql = """
        create table if not exists douban(
            id int auto_increment primary key,
            title varchar(255) not null,
            rating varchar(255) not null,
            quote varchar(255)
        );
    """
    try :
        db.execute(sql)
    except Exception as e:
        print(e)

createdb()